/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.DesignPatterns.Creational.prototype;

/**
 *
 * @author Nashief
 */
public class Person implements Prototype {

    String name;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
    
    
    public Person(String name){
    this.name= name;
    }
    public Person(){
    }
    @Override
    public Prototype doClone() {
        return new Person(name);
    }  
    public String toString(){
    return "This person is named"+ name;
    }
    
}
